// components/attestation/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    mode: String,
    pass: Boolean
  },
  lifetimes: {
    ready() {}
  },
  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    bindAttestation(e) {
      const person = 'person'
      const company = 'company'
      const mode = this.properties.mode
      person === mode ?
        wx.navigateTo({
          url: '/vip/identity/index'
        }) :
        wx.navigateTo({
          url: '/vip/enterprise/index'
        })
    }
  }
})